package com.hiep.connect.shared;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.vercer.engine.persist.annotation.Parent;

public class FriendGroup implements Serializable {
	private static final long serialVersionUID = 201204301L;

	// private UUID id;

//	@Id
	private String name;

//	@Parent
//	Key<MyUser> parent;

	private List<MyUser> members;

	public FriendGroup() {
	}

	// public UUID getId() {
	// return id;
	// }
	//
	// public void setId(UUID id) {
	// this.id = id;
	// }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<MyUser> getMembers() {
		return members;
	}

	public void setMembers(List<MyUser> members) {
		this.members = members;
	}

	public void addMember(MyUser m) {
		members.add(m);
	}

	public void addAllMembers(Collection<MyUser> all) {
		members.addAll(all);
	}
}
